package com.server;

import com.domain.Member;
import org.apache.ibatis.annotations.Param;

import  java.util.List;

public interface MemberService {

     Member selectMemberById(Integer id);

    String selectMemberByuser_idAndspace_id(@Param("user_id")Integer user_id, @Param("space_id")Integer space_id);

     Member selectMemberByspace_id(Integer space_id);

     int insertMember(Member member);

    List<Member> findAllMember(int page,int pageSize,int space_id);

    int findMemberTotal(int space_id);

    List<Member> selectAllMember(int space_id);

    List<Member> selectMemberByName(String name,int space_id);

    int updateMember(Member member);

    Member selectMemberById(int id);

    public int deleteById(@Param("space_id") Integer space_id, @Param("user_id") Integer user_id);

    int deleteAllMemberBySpaceId(int space_id);

    List<Member> selectMemberByUserId(@Param("user_id")int user_id);

    List<Member> descCreateDateByUserId(@Param("user_id") Integer user_id);

}
